<include file="Public:header"/>
<include file="Material:info"/>
<form class="form-inline">
<include file="Material:selectdate"/>
类型
<select name="grade">
<foreach name="grades" item="g">
    <option value="{$g}" <if condition="$grade eq $g"> selected="selected"</if>>{$g}</option>
</foreach>
</select>
<input type="submit" value="统计" class="btn btn-primary"/>
</form>
<table class="table">
    <tr>
        <td>总数任务</td>
        <td>{$taskCount}</td>
        <td>总数图片</td>
        <td>{$taskImageCount.img_count}</td>
    </tr>
</table>
<table class="table table-striped">
    <thead>
    <tr>
        <th>#</th>
        <th>说明</th>
        <th>类型</th>
        <th>当前数量</th>
        <th>结束数量</th>
        <th>状态</th>
        <th>操作</th>
    </tr>
    </thead>
    <foreach name="tasks" item="task">
        <tr>
            <td>{$task.itemid}</td>
            <td>{$task.brand}</td>
            <td>{$task.type}</td>
            <td>{$task.now_count}</td>
            <td>{$task.end_count}</td>
            <td>{$task.status}</td>
            <th>
                <a href="{:U('/Plan/td')}/id/{$task.itemid}">详细</a>
            </th>
        </tr>
    </foreach>
    <tr>
        <td colspan="7">{$page}</td>
    </tr>
</table>
<include file="Public:footer"/>